package cn.cleanarch.infra.idp.pms.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import cn.cleanarch.infra.idp.database.entity.DBModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

/**
 * 设计文件标签实体类
 */
@Data
@ToString
@EqualsAndHashCode(callSuper = true)
@TableName("t_design_file_tag")
public class DesignFileTag extends DBModel {

    /**
     * 标签名称
     */
    @Length(max = 50)
    private String name;

    /**
     * 标签颜色
     */
    @Length(max = 7)
    private String color;

    /**
     * 创建者ID
     */
    private Long createdBy;

    /**
     * 更新者ID
     */
    private Long updatedBy;
}
